package com.scs.application.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 * 工作台
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "工作台配置表")
@TableName("sys_workbench")
public class Workbench extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "DeptId",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "科室名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String deptName;

    @EntityFieldAnnotation(
            text = "用户标志",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String userCode;

//    @EntityFieldAnnotation(
//            text = "是否显示仓库",
//            length = "",
//            not_null = true,
//            default_value = "1",
//            comment = ""
//    )
//    private Integer flagWarehouse;

    @EntityFieldAnnotation(
            text = "标题",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String title;

    @EntityFieldAnnotation(
            text = "类型",
            length = "50",
            not_null = true,
            default_value = "数据视图",
            comment = ""
    )
    private String flagType;

    @EntityFieldAnnotation(
            text = "类型标识",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String typeKey;

    @EntityFieldAnnotation(
            text = "高度:auto：自动",
            length = "10",
            not_null = false,
            default_value = "300",
            comment = ""
    )
    private String height;

    @EntityFieldAnnotation(
            text = "宽度:12",
            length = "",
            not_null = false,
            default_value = "12",
            comment = ""
    )
    private Integer width;

    @EntityFieldAnnotation(
            text = "顺序",
            length = "",
            not_null = false,
            default_value = "100",
            comment = ""
    )
    private Integer sortNum;

    @EntityFieldAnnotation(
            text = "icon",
            not_null = false,
            comment = ""
    )
    private String icon;

}
